#include "Routine.h"
#include "Instruction.h"
#include <cassert>


Routine::~Routine() {
	
	for (Instructions::iterator i = m_instructions.begin(); i != m_instructions.end(); ++i) {
		delete (*i);
	}
	
}


void Routine::addInstruction(Instruction* instruction) {
	assert(instruction);
	
	m_instructions.push_back(instruction);	
}

